//
// Score.hh for nibbler in /home/lefebv_w//workspace/cpp/nibbler/googleCode
// 
// Made by damien lefebvre
// Login   <lefebv_w@epitech.net>
// 
// Started on  Tue Mar 19 15:58:51 2013 damien lefebvre
// Last update Sun Mar 24 18:09:50 2013 damien lefebvre
//

#ifndef		__SCORE_HH__
#define		__SCORE_HH__

#include	<iostream>
#include	<string>
#include	<sstream>
#include	<iomanip>
#include	<vector>

#include	"header.hh"
#include	"IGraphicLibrary.hh"

class		Score
{
private :
  unsigned int	m_pos_y;
  unsigned int	m_value;
  unsigned int	m_level;
  unsigned int	m_nbofpart;
  unsigned int	m_life;
  t_frame	m_vitesse;

  std::vector<t_frame>	vitesses;

public :
  Score(unsigned int m_pos_y, unsigned int value = 0);

  void		draw(IGraphicLibrary & graph) const;
  bool		add(unsigned int value);
  bool		eat(unsigned int value);
  unsigned int	getLevel(void) const;
  unsigned int	getLife(void) const;
  unsigned int	loseLife(void);
  void		addLife(void);
  void		levelUp(void);
  t_frame	getVitesse(void) const;
};

#endif  
